package com.nsi.o2o.service;

import com.nsi.o2o.dto.ProductCategoryExecution;
import com.nsi.o2o.entity.ProductCategory;
import com.nsi.o2o.exceptions.ProductCategoryOperationException;

import java.util.List;

/**
 * @author: Luo Zhen
 * @date: 2018/9/16 19:56
 * @description:
 */
public interface ProductCategoryService {

    /**
     * 查询某个店铺下所有的商品
     *
     * @param shopId
     * @return
     */
    List<ProductCategory> getProductCategoryList(long shopId);

    /**
     * 批量添加
     *
     * @param productCategoryList
     * @return
     * @throws ProductCategoryOperationException
     */
    ProductCategoryExecution batchAddProductCategory(List<ProductCategory> productCategoryList)
            throws ProductCategoryOperationException;

    /**
     * 根据参数 删除指定数据
     *
     * @param productCategoryId
     * @param shopId
     * @return ProductCategoryOperationException
     */
    ProductCategoryExecution deleteProductCategory(long productCategoryId, long shopId)
            throws ProductCategoryOperationException;


}
